﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ApiTemplateGenerate.TemplateTsAxios
{
    /// <summary>
    /// TS 枚举模版
    /// </summary>
    public  class TemplateEnum
    {
        public static string Template = @"
@foreach (var item in Model){
<text>/**@item.Describe*/</text>
<text>export enum @item.Name {</text>
    foreach(var item2 in item.TsEnumFiled){
  <text>/**@item2.Describe*/</text>
  <text>  @item2.EnumName = @item2.Value,;</text>
    }
<text>}</text>
}
";
    }
}
